package src.unapec.security.models.EntornoJava;

import java.util.Random;

public class AIOOBE {

	private int[] aioobe = new int[5];
	private int index = 0;
	private Random random = new Random();	
	
	public AIOOBE(){
		
		fillArray();
		
	}
	
	public void fillArray(){
		
		for (int i = 0; i < aioobe.length; i++) {
			
			aioobe[i] = random.nextInt(9);
			
		}
		
	}
	
	public int getSize(){
		
		return aioobe.length;
		
	}
	
	public int[] getArray(){
		
		return aioobe;
		
	}
	
	public int getValue(int index){
		
		return aioobe[index];
		
	}
	
	
	public void moveFoward(){
		
		index++;
		
	}
	
	public void moveBackward(){
		
		index--;
	}
	
	public int getIndex(){
		
		return index;
		
	}
	
	
	
	
}
